package com.atguigu.feign;

import com.atguigu.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "user-provider")
public interface UserClient {
    @RequestMapping("/user/find/{id}")
    public User findById(@PathVariable("id") Integer id);
}
